package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.entity.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Jialin
 * @create 2023-06-30 9:54
 */
@Mapper
public interface DishDao extends BaseMapper<Dish> {
    @Select("select * from dish where category_id = #{categoryId}")
    List<Dish> listByCategoryId(@Param("categoryId") Long id);
}
